package uk.ac.qub.midorfeed;

import java.util.Comparator;

/**
 * Comparator to be used for sorting Heroes list
 * @author Graeme
 *
 */
public class HeroComparator implements Comparator <Hero> {

	/**
	 * Sorts the heroes alphabetically
	 */
	@Override
	public int compare(Hero h1, Hero h2) {
		
		return h1.toString().compareTo(h2.toString());
	}

}
